package com;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import java.util.function.Supplier;

public class LambdaTwo {
    //方法引用之构造函数引用
    public void constructQuote(){
// SupplierOne<QuoteClass> s1 = () -> new QuoteClass ();
        Supplier<QuoteClass> s2 = QuoteClass::new;

    }
    public static void main(String[] args) {
        List<String> list = Arrays.asList("c","b","a");
        System.out.println(list);
        list.sort(String::compareToIgnoreCase);
        System.out.println(list);

        Function<String,Integer> f2 = Integer::valueOf;
        Integer result = f2.apply("123");
        System.out.println(result);
    }

}
